package com.dys.pojo;

public class Emp {
    private Integer id;

    private String name;

    private Integer age;

    private Integer deptid;

    public Emp() {
    }

    public Emp(String name, Integer age, Integer deptid) {
        this.name = name;
        this.age = age;
        this.deptid = deptid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", deptid=" + deptid +
                '}';
    }
}